home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / esc.jar / com / extensibility / xa / CMQDataSource$1.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-06-30  |  1.1 KB  |  25 lines

  1. package com.extensibility.xa;
  2.  
  3. import java.util.Enumeration;
  4.  
  5. class CMQDataSource$1 implements Enumeration {
  6.    // $FF: synthetic field
  7.    final CMQDataSource this$0;
  8.    final Enumeration elems;
  9.    final Enumeration reusables;
  10.  
  11.    public boolean hasMoreElements() {
  12.       return this.elems.hasMoreElements() || this.reusables.hasMoreElements();
  13.    }
  14.  
  15.    public Object nextElement() {
  16.       return this.elems.hasMoreElements() ? this.elems.nextElement() : this.reusables.nextElement();
  17.    }
  18.  
  19.    CMQDataSource$1(CMQDataSource var1) {
  20.       this.this$0 = var1;
  21.       this.elems = this.this$0.doc.getDeclNames(Class.forName("com.extensibility.xml.ElementDeclaration"), true);
  22.       this.reusables = this.this$0.doc.getContentGroupPENames();
  23.    }
  24. }
  25.